<? echo $this->Session->flash();?>

<div id="conteudo2">
    <h1>Anexar um arquivo</h1>
    <div id="formulario">
        <?php
        echo $this->Form->create('Teste', array('type' => 'file'));
        echo $this->Form->hidden('occurrence_id', array('type'=>'text', 'value'=>$id));
        echo $this->Form->input('filename', array('type' => 'file', 'label'=>''));
        echo $this->Form->input('dir', array('type' => 'hidden'));
        echo $this->Form->input('mimetype', array('type' => 'hidden'));
        echo $this->Form->input('filesize', array('type' => 'hidden'));
        echo('<br/>');
//        echo $this->Form->end('Enviar');
        ?>
        <div class="submit"><input type="submit" value="Enviar"><a href="/occurrences"><input type="button" value="Sem foto"></a></div>
        <? echo ('</form>'); ?>
    </div>
</div>